﻿using StructureMap;
using System;
using System.Threading;

namespace ZSoftInstagram.UI.Web.Infrastructure.IOC
{
    public static class ObjectFactory
    {
        private static readonly Lazy<Container> _containerBuilder =
                new Lazy<Container>(() => new Container(), LazyThreadSafetyMode.ExecutionAndPublication);

        public static IContainer Container
        {
            get { return _containerBuilder.Value; }
        }
    }
}
